<?php

/**
 * 字符拆分公共函数
 *
 */
class Split{
	private $_CI;
	private $brithday;
	function __construct(){
		$this->_CI = & get_instance();
	}
	
	function split_brithday($member_brithday = null){
		
		if( !empty( $member_brithday ) ){
			$brithday_list = explode('-',$member_brithday );
			$brithday['year']  = $brithday_list[0];
			$brithday['month'] = $brithday_list[1];
			$brithday['day']   = $brithday_list[2];
		} else {
			$brithday['year']  = 0;
			$brithday['month'] = 0;
			$brithday['day']   = 0;
		}
		return $brithday;
	}
}